<?php
if(!$_SESSION['quickregister']['step1']['complete'] && !$_SESSION['quickregister']['step2']['complete'] && !$_SESSION['quickregister']['step3']['complete'])
{
	$step1 = 'step1focus';
	$step2 = 'step2';
	$step3 = 'step3';
}
else if($_SESSION['quickregister']['step1']['complete'] && !$_SESSION['quickregister']['step2']['complete'] && !$_SESSION['quickregister']['step3']['complete'])
{
	$step1 = 'stepdone';
	$step2 = 'step2focus';
	$step3 = 'step3';
}
else
{
	$step1 = 'stepdone';
	$step2 = 'stepdone';
	$step3 = 'step3focus';
}
?>
<div id="stepnumbers">
    <div class="<?=$step1?>">%main_step1%</div>
    <div class="<?=$step2?>">Account details</div>
    <div class="<?=$step3?>">Security Check</div>
    <div class="stephabbo"></div>
</div>

<div id="main-container">
    
<?php if($tpl->vars["quickregister_step"] == "age_gate") { ?>

<noscript>
<div id="alert-javascript-container">
    <div id="alert-javascript-title">
        %js_msg1%
    </div>
    <div id="alert-javascript-text">
        %js_msg2%
    </div>
</div>
</noscript>

<div id="alert-cookies-container" style="display:none">
    <div id="alert-cookies-title">
        %cookie_msg1%
    </div>
    <div id="alert-cookies-text">
        %cookie_msg2%
    </div>
</div>
<script type="text/javascript">
    document.cookie = "habbotestcookie=supported";
    var cookiesEnabled = document.cookie.indexOf("habbotestcookie") != -1;
    if (cookiesEnabled) {
        var date = new Date();
        date.setTime(date.getTime()-24*60*60*1000);
        document.cookie="habbotestcookie=supported; expires="+date.toGMTString();
    } else {
        $('alert-cookies-container').show();
    }
</script>

<?php } ?>
<?php if($_SESSION['quickregister']['error']) { ?>
    <div id="error-messages-container" class="cbb">
            <div class="rounded" style="background-color: #E2001A;">
               <div id="error-title" class="error">
                    <?=$_SESSION['quickregister']['error']?>
               </div>
            </div>
        </div>
    <?php } else { ?>
        <div id="error-placeholder"></div>
    <?php } ?>

<?php if($tpl->vars['form_action']) { ?>
<form id="<?=$tpl->vars['form_action']?>" method="post" action="<?=HTTPS?>/quickregister/<?=$tpl->vars['quickregister_step']?>_submit">
<?php } ?>